package com.cff.action;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.text.JTextComponent;

import com.cff.common.Constant;
import com.cff.util.SignTools;

public class GetKeyActionListener implements ActionListener {
	
	private JTextComponent srcText;
	
	private JFrame tmpFrame;
	
	private String KeyType;
	
	public GetKeyActionListener(JTextComponent srcText, JFrame tmpFrame, String KeyType) {
		super();
		this.srcText = srcText;
		this.tmpFrame = tmpFrame;
		this.KeyType = KeyType;
	}


	@Override
	public void actionPerformed(ActionEvent e) {
		
		tmpFrame.dispatchEvent(new WindowEvent(tmpFrame,WindowEvent.WINDOW_CLOSING) );
		
	}

}
